export const success = () => {
	return new Promise((resolve, reject) => {
		uni.chooseImage({
			success: (chooseImageRes) => {
				const tempFilePaths = chooseImageRes.tempFilePaths;
				uni.uploadFile({
					url: 'http://42.192.15.126:3000/yan/head', //仅为示例，非真实的接口地址
					filePath: tempFilePaths[0],
					name: 'file',
					success: (uploadFileRes) => {
						resolve(JSON.parse(uploadFileRes.data).filename)
					}
				});
			}
		});
	})
}